package com.itheima.service;

import com.itheima.pojo.Comment;

import java.util.List;
import java.util.Map;

/**
 * @ClassName CommentService
 * @Description 评论表 服务接口
 * @Author pengkaka
 * @Date 2020/8/4 18:45
 * @Version 1.0
 **/
public interface CommentService {

    /**
     * 获取评论数目
     * @Author: pengzheng
     * @Description:
     * @Date: 18:47 2020/8/4
     * @Param status: 
     * @return: java.lang.Integer 
     */
    Integer getCommentCount(int status);
    
    //原版
    String add(Comment comment);
    
    //Comment add(Comment comment);

    String delete(Comment comment);

    String deleteBatch(List<Comment> commentList);

    String edit(Comment comment);
    
    //PageInfo<Comment> getPageList(Map<String, Object> searchMap);
    
    Map<String,Object> getPageList(Map<String, Object> searchMap);
}
